package com.red.star.wechat.data.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @ClassName ImageView
 * @Description entity
 * @Author xuquanyu
 * @Date 2018/8/1619:07
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ImageView", description = "编辑器图片")
@Table(name = "t_image_view")
public class ImageView extends BaseEntity {

    /**
     * 粉丝id
     */
    @ApiModelProperty(value = "粉丝id", example = "0")
    private Integer fansId;

    /**
     * 导购员id
     */
    @ApiModelProperty(value = "导购员id", example = "0")
    private Integer employeeId;
    /**
     * 导购员名称
     */
    @ApiModelProperty(value = "导购员名称")
    private String employeeName;
    /**
     * 导购员手机号
     */
    @Transient
    private String mobile;
    /**
     * 筛选条件: 商户id
     */
    @Transient
    private String merchantId;
    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatarUrl;
    /**
     * 商户名
     */
    @ApiModelProperty(value = "商户名")
    private String merchantName;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述：自定义文字")
    private String content;

    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 当前步骤：1、选择模板  2、选择样式  3、更换头像  5、自定义文字  5、选择二维码  6、保存图片
     */
    @ApiModelProperty(value = "当前步骤：1、选择模板  2、选择样式  3、更换头像  5、自定义文字  5、选择二维码  6、保存图片", example = "0")
    private Integer step;

    /**
     * 模板id
     */
    @ApiModelProperty(value = "模板id", example = "0")
    private Integer imageTemplateId;

    /**
     * 选择模板的时间
     */
    @ApiModelProperty(value = "选择模板的时间", dataType = "java.util.Date")
    private Date imageTemplateTime;

    /**
     * 样式id
     */
    @ApiModelProperty(value = "样式", example = "0")
    private String style;

    /**
     * 选择样式时间
     */
    @ApiModelProperty(value = "选择样式时间", dataType = "java.util.Date")
    private Date styleTime;

    /**
     * 选择头像时间
     */
    @ApiModelProperty(value = "选择头像时间", dataType = "java.util.Date")
    private Date avatarUrlTime;

    /**
     * 自定义文字时间
     */
    @ApiModelProperty(value = "自定义文字时间", dataType = "java.util.Date")
    private Date contentTime;


    /**
     * 选择二维码
     */
    @ApiModelProperty(value = "选择二维码", example = "0")
    private Integer imagePosterId;

    /**
     * 选择二维码时间
     */
    @ApiModelProperty(value = "选择二维码时间", dataType = "java.util.Date")
    private Date imagePosterTime;

    /**
     * 商场code
     */
    @ApiModelProperty(value = "商场code")
    private String mallCode;

    /**
     * 扫码人数
     */
    @Transient
    @ApiModelProperty(value = "扫码人数", example = "0")
    private Integer scanPeoples = 0;

    /**
     * 扫码次数
     */
    @Transient
    @ApiModelProperty(value = "扫码次数", example = "0")
    private Integer scanNum = 0;

    /**
     * 报名人数
     */
    @Transient
    @ApiModelProperty(value = "报名人数", example = "0")
    private Integer enrollNum = 0;

    /**
     * 领券人数
     */
    @Transient
    @ApiModelProperty(value = "领券人数", example = "0")
    private Integer voucherNum = 0;

    /**
     * 微信昵称
     */
    @Transient
    @ApiModelProperty(value = "微信昵称", example = "流星雨")
    private String nickName;

    /**
     * openId
     */
    @Transient
    @ApiModelProperty(value = "openId", example = "oN6T10DIX-au9Dij1EcEa33Dxp28")
    private String openId;

    /**
     * 上传本地图片地址
     */
    @ApiModelProperty(value = "上传本地图片地址")
    private String localImageUrl;

    /**
     * 上传本地图片时间
     */
    @ApiModelProperty(value = "上传本地图片时间", dataType = "java.util.Date")
    private Date localImageTime;

    /**
     * 生成图片地址
     */
    @ApiModelProperty(value = "生成图片地址")
    private String imageUrl;

    /**
     * 生成图片时间
     */
    @ApiModelProperty(value = "生成图片时间", dataType = "java.util.Date")
    private Date imageUrlTime;

    /**
     * 二维码类型  type: 0小程序 ，1 h5
     */
    @Transient
    @ApiModelProperty(value = "二维码类型  type: 0小程序 ，1 h5, 2 app下载 , 3 微信公众号", example = "0")
    private Integer type;

    @Transient
    @ApiModelProperty(value = "全民营销、小程序区别")
    private String userType;

    @Transient
    private String fansName;

    @Transient
    private String mallName;

    @Transient
    private String ImageTemplateName;

    /**
     * 裂变活动
     */
    @ApiModelProperty(value = "裂变活动", example = "0")
    private Integer imageActivityId;
}
